package com.example.anliku.service;

import com.example.anliku.entity.Example;
import com.example.anliku.entity.Message;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface ExampleService {


    Message deleteByPrimaryKey(Integer exampleId);

    Message insert(Example record);

    Message insertSelective(Example record);

    Message selectByPrimaryKey(Integer exampleId);

    HashMap Example(Integer exampleId);

    Message updateByPrimaryKeySelective(Example record);

    Message updateByPrimaryKey(Example record);

    Message selectAll();

    Message selectKnowledgeAll();

    Message updateExampleStateAndExampleCheckIdAndExampleAdviceByExampleId(Integer updatedExampleState,String updatedExampleCheckId,String deductedExampleAdvice, Integer exampleId);

    Message searchTest(@RequestParam Integer pageNum,@RequestParam Integer size);

    Message selectexampleUserIdByexample(@Param("exampleUserId") String exampleUserId);

    Message selectAllByExampleUserIdAndExamplePublicState(@Param("exampleUserId")String exampleUserId,@Param("examplePublicState")Integer examplePublicState);

    Message returnAll();

    Message selectByExampleUserId(String exampleUserId);

    Message ruturnTop5();
}



